﻿using System;

namespace _net_ex2_p1
{
    class Program
    {
        static void Main(string[] args)
        {
            System.Console.WriteLine("年龄：");
            int age = int.Parse(System.Console.ReadLine());
            System.Console.WriteLine("班级：");
            int classes = int.Parse(System.Console.ReadLine());
            System.Console.WriteLine("总分：");
            int scores = int.Parse(System.Console.ReadLine());
            Student student = new Student(age,classes,scores);
            int isPass = student.isPass();
            if (isPass == 1) {
                System.Console.WriteLine("合格");
            }else {
                System.Console.WriteLine("不合格");
            }
        }
    }
}
